package com.megan.design.principle.singleresponsibility;

/**
 * @Author: megan
 * @Data: 2018/8/19 下午7:36
 * @Description:
 */
public class Method {
    private void updateUserInfo(String userName,String address){
        userName = "megan";
        address = "hangzhou";
    }

    private void updateUserInfo(String userName,String... properties){
        userName = "megan";
//        address = "hangzhou";
    }

    private void updateUserName(String userName){
        userName = "megan";
    }

    private void updateUserAddress(String address){
        address = "hangzhou";
    }

    private void updateUserInfo(String userName,String address,boolean bool){
        if(bool){
            // todo something1
        }else{
            // todo something2
        }
        userName = "megan";
        address = "hangzhou";
    }

}
